﻿using UnityEngine;
using UnityEngine.UI;

public abstract class UIPageBase : UIBehaviour
{
    [HideInInspector]
    public int index;
    [HideInInspector]
    public Toggle toggle;
    [HideInInspector]
    public UIPagedPanelBase panel;

    /// <summary>
    /// 初始化
    /// </summary>
    public virtual void OnInit() { }

    /// <summary>
    /// 显示时
    /// </summary>
    public virtual void OnShow() { }

    /// <summary>
    /// 隐藏时
    /// </summary>
    public virtual void OnHide() { }

    /// <summary>
    /// 刷新
    /// </summary>
    public virtual void Refresh() { }
}